package com.fc.web.action;

import com.fc.base.annotation.autowired;
import com.fc.base.web.BaseAction;
import com.fc.service.ILoginInfoService;
import com.fc.service.LoginInfoServiceImpl;

public class MemberAction extends BaseAction {
	private String username;
	private String password;
	@autowired
	private static ILoginInfoService service;

	public String save() {
		System.out.println(username + ":" + password);
		if (null != service)
			System.out.println(service.getClass().getName());
		else
			System.out.println("...sdfsdf.");
		return null;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public static void main(String[] args) {
		System.out.println(service);
		service = new LoginInfoServiceImpl();
		System.out.println(service.getClass().getName());
	}
}
